<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.stark.blog.model.User" %>
<%
  User user =(User)session.getAttribute("user");
 if(user==null){
	//request.getRequestDispatcher("/admin/login.jsp").forward(request,response);
 }

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<link href="/BlogSystem/admin/style.css" type="text/css" rel="stylesheet"> 

</head>
<body>
<div id="container">	
<div id="banner">
		<h1><%if(user!=null){out.print(user.getUserName());} %>の博客</h1>
</div>
<div id="menu">
 
	欢迎, <% if(user!=null){
			out.print(user.getUserName());
			}%>用户登陆
	 | <a href="/BlogSystem/admin/addBlog.jsp">发博文</a>
	 | <a href="/BlogSystem/BlogServlet?method=getBlogList">博文管理</a>
	 | <a href="">分类管理</a>
 	 | <a href="">评论管理</a>
	 | <a href="/BlogSystem/admin/changePassword.jsp">修改密码</a>
	 | <a href="/BlogSystem/UserServlet?method=logout">退出</a>
</div>
<br/>
<div id="main">
